var t = getApp();

Page({
    data: {},
    onLoad: function(t) {
        this.getData();
    },
    onReady: function() {},
    toPredict: function() {
        wx.navigateTo({
            url: "/packageE/team_sell/predictIncome/predictIncome"
        });
    },
    golimit: function() {
        wx.navigateTo({
            url: "/packageE/team_sell/teamLimit/teamLimit"
        });
    },
    gohuoyue: function() {
        wx.navigateTo({
            url: "/packageE/team_sell/teamActive/teamActive"
        });
    },
    goList: function(t) {
        var e = t.currentTarget.dataset.lis;
        console.log(e), wx.navigateTo({
            url: "/packageE/team_sell/getCouponLis/getCouponLis?lis=" + e
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getData: function() {
        var e = this, o = t.getNetAddresss("plugin.team-sales.api.home.index");
        t._postNetWork({
            url: o,
            success: function(t) {
                var o = t.data;
                1 == o.result ? (console.log(o), e.setData({
                    info: o.data
                }), wx.setNavigationBarTitle({
                    title: o.data.set.name
                })) : (wx.showToast({
                    title: o.msg,
                    icon: "none"
                }), console.log(o.msg));
            }
        });
    }
});